package com.easyjava.vuebean;

import com.easyjava.utils.PropertiesUtils;

/**
 * @Author: 小闹心
 * @Description: vue常量类
 * @DateTime: 2024/11/21 10:36
 **/
public class ConstantsVue {
    public static String VUE_RESOURCE_PATH = "resources/vue";
    public static String PATH_VUE_BASE;
    public static String PACKAGE_VUE_UTILS;
    public static String PACKAGE_VUE_APIS;
    public static String PATH_VUE_UTILS;
    public static String PATH_VUE_APIS;
    public static String PACKAGE_VUE_VIEWS;
    public static String PATH_VUE_VIEWS;

    public static String VUE_SERVER_URL;

    public static String[] IGNORE_VUE_FIELDS;
    public static boolean IGNORE_VUE_KEYS;
    public static String PATH_VUE_SHOW_VIEWS;

    static {
        PATH_VUE_BASE = PropertiesUtils.getString("path.vue.base");
        PACKAGE_VUE_APIS = PropertiesUtils.getString("package.vue.apis");
        PACKAGE_VUE_UTILS = PropertiesUtils.getString("package.vue.utils");
        PACKAGE_VUE_VIEWS = PropertiesUtils.getString("package.vue.views");

        PATH_VUE_UTILS = PATH_VUE_BASE + PACKAGE_VUE_UTILS;
        PATH_VUE_APIS = PATH_VUE_BASE + PACKAGE_VUE_APIS;
        PATH_VUE_VIEWS = PATH_VUE_BASE + PACKAGE_VUE_VIEWS;

        VUE_SERVER_URL = PropertiesUtils.getString("vue.server.url");

        IGNORE_VUE_FIELDS = PropertiesUtils.getString("ignore.vue.fields").split(",");
        IGNORE_VUE_KEYS = PropertiesUtils.getString("ignore.vue.keys").equals("true");
        PATH_VUE_SHOW_VIEWS = PropertiesUtils.getString("path.vue.show.views");
    }
}
